package com.backend.thread.countDownLatch

import java.util.concurrent.CountDownLatch

class NetworkHealthChecker(latch: CountDownLatch) : BaseHealthChecker("Network Service", latch) {

    override fun verifyService() {
        println("Checking " + this.serviceName)
        try {
            Thread.sleep(7000)
        } catch (e: InterruptedException) {
            e.printStackTrace()
        }

        println(this.serviceName + " is UP")
    }
}